home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / C / Translt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-13  |  9.7 KB  |  300 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: Translt.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emith.dll: 2.33
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *  Classes defined in this interface
  13.  * 
  14.  */
  15.  
  16.  
  17. #ifndef SOM_ODTranslation_h
  18. #define SOM_ODTranslation_h
  19.  
  20.  
  21. #include <som.h>
  22.  
  23. /*
  24.  * -- This emitter treats Method Tokens as Thunks by default.
  25.  * -- Use the sc modifier "nothunks" to change this default
  26.  */
  27. #undef somresolve_
  28. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  29.  
  30. /*
  31.  * Define the class name as an object type
  32.  */
  33. #ifndef ODTranslation
  34. #define ODTranslation SOMObject
  35. #endif
  36. #include <ODObject.h>
  37.  
  38. /*
  39.  * Start of user-defined types:
  40.  */
  41. #ifndef SOMClass
  42.     #define SOMClass SOMObject
  43. #endif /* SOMClass */
  44. #ifndef SOMObject
  45.     #define SOMObject SOMObject
  46. #endif /* SOMObject */
  47. #ifndef ODFrame
  48.     #define ODFrame SOMObject
  49. #endif /* ODFrame */
  50. #ifndef ODFacet
  51.     #define ODFacet SOMObject
  52. #endif /* ODFacet */
  53. #ifndef ODObject
  54.     #define ODObject SOMObject
  55. #endif /* ODObject */
  56. #ifndef ODExtension
  57.     #define ODExtension SOMObject
  58. #endif /* ODExtension */
  59. #ifndef ODTranslation
  60.     #define ODTranslation SOMObject
  61. #endif /* ODTranslation */
  62. #ifndef ODTypeList
  63.     #define ODTypeList SOMObject
  64. #endif /* ODTypeList */
  65. #ifndef ODStorageUnitView
  66.     #define ODStorageUnitView SOMObject
  67. #endif /* ODStorageUnitView */
  68. #ifndef ODSession
  69.     #define ODSession SOMObject
  70. #endif /* ODSession */
  71.  
  72. /*
  73.  * End of user-defined types.
  74.  */
  75.  
  76. #define ODTranslation_MajorVersion 1
  77. #define ODTranslation_MinorVersion 0
  78.  
  79. /*
  80.  * External name shortening if required
  81.  */
  82. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  83. #define ODTranslationClassData d
  84. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  85. /*--------------Migration------------*/
  86.  
  87. #ifdef OLDIBMSOMAPISUPPORT
  88. #define ODTranslation_classObj somNewClassReference(ODTranslation)
  89. #define _ODTranslation ODTranslation_classObj
  90. #define ODTranslationCClassData ODTranslationClassData
  91. #define ODTranslationNewClass(major,minor) somNewVersionedClassReference(ODTranslation,major,minor)
  92. #endif
  93.  
  94. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  95. #define ODTranslationMetaClass SOMClass
  96.  
  97. #if PRAGMA_ALIGN_SUPPORTED
  98. #  pragma options align=power
  99. #endif
  100.  
  101. /*
  102.  * Declare the class data structure
  103.  */
  104. SOMEXTERN struct ODTranslationClassDataStructure {
  105. #ifdef OLDIBMSOMAPISUPPORT
  106.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  107. #else
  108.     long zero;
  109. #endif
  110.     somStaticClassInfo *sci;
  111.     somDToken        instanceDataToken;
  112.     long reserved [3];
  113.     somMToken CanTranslate;
  114.     somMToken GetTranslationOf;
  115.     somMToken TranslateView;
  116.     somMToken Translate;
  117.     somMToken GetISOTypeFromPlatformType;
  118.     somMToken GetPlatformTypeFromISOType;
  119.     somMToken reserved1;
  120.     somMToken reserved2;
  121.     somMToken reserved3;
  122. } SOMDLINK ODTranslationClassData;
  123.  
  124. #if PRAGMA_ALIGN_SUPPORTED
  125. #  pragma options align=reset
  126. #endif
  127.  
  128. #if !defined(ODTranslation_Class_Source) && !defined(SOM_Module_translt_Source)
  129. #if PRAGMA_IMPORT_SUPPORTED
  130. #pragma import list ODTranslationClassData
  131. #endif
  132. #endif
  133.  
  134.  
  135. /*
  136.  * New macro for ODTranslation
  137.  */
  138. #define ODTranslationNew() somNewObject(ODTranslation)
  139.  
  140. /*
  141.  * Override method: somUninit
  142.  */
  143. #define ODTranslation_somUninit(somSelf) \
  144.     SOMObject_somUninit(somSelf)
  145.  
  146. /*
  147.  * Override method: Purge
  148.  */
  149. #define ODTranslation_Purge(somSelf,ev,size) \
  150.     ODObject_Purge(somSelf,ev,size)
  151.  
  152. /*
  153.  * New Method: CanTranslate
  154.  */
  155. typedef ODTranslateResult   (SOMLINK *somTD_ODTranslation_CanTranslate)(ODTranslation *somSelf, Environment *ev,
  156.         ODValueType fromType);
  157. #define somMD_ODTranslation_CanTranslate "::ODTranslation::CanTranslate"
  158. #define ODTranslation_CanTranslate(somSelf,ev,fromType) \
  159.     (SOM_Resolve(somSelf, ODTranslation, CanTranslate) \
  160.     (somSelf,ev,fromType))
  161. #ifndef SOMGD_CanTranslate
  162.     #if (defined(_CanTranslate) || defined(__CanTranslate))
  163.         #undef _CanTranslate
  164.         #undef __CanTranslate
  165.         #define SOMGD_CanTranslate 1
  166.     #else
  167.         #define _CanTranslate ODTranslation_CanTranslate
  168.     #endif /* _CanTranslate */
  169. #endif /* SOMGD_CanTranslate */
  170.  
  171. /*
  172.  * New Method: GetTranslationOf
  173.  */
  174. typedef ODTypeList*   (SOMLINK *somTD_ODTranslation_GetTranslationOf)(ODTranslation *somSelf, Environment *ev,
  175.         ODValueType fromType);
  176. #define somMD_ODTranslation_GetTranslationOf "::ODTranslation::GetTranslationOf"
  177. #define ODTranslation_GetTranslationOf(somSelf,ev,fromType) \
  178.     (SOM_Resolve(somSelf, ODTranslation, GetTranslationOf) \
  179.     (somSelf,ev,fromType))
  180. #ifndef SOMGD_GetTranslationOf
  181.     #if (defined(_GetTranslationOf) || defined(__GetTranslationOf))
  182.         #undef _GetTranslationOf
  183.         #undef __GetTranslationOf
  184.         #define SOMGD_GetTranslationOf 1
  185.     #else
  186.         #define _GetTranslationOf ODTranslation_GetTranslationOf
  187.     #endif /* _GetTranslationOf */
  188. #endif /* SOMGD_GetTranslationOf */
  189.  
  190. /*
  191.  * New Method: TranslateView
  192.  */
  193. typedef ODTranslateResult   (SOMLINK *somTD_ODTranslation_TranslateView)(ODTranslation *somSelf, Environment *ev,
  194.         ODStorageUnitView* fromView,
  195.         ODStorageUnitView* toView);
  196. #define somMD_ODTranslation_TranslateView "::ODTranslation::TranslateView"
  197. #define ODTranslation_TranslateView(somSelf,ev,fromView,toView) \
  198.     (SOM_Resolve(somSelf, ODTranslation, TranslateView) \
  199.     (somSelf,ev,fromView,toView))
  200. #ifndef SOMGD_TranslateView
  201.     #if (defined(_TranslateView) || defined(__TranslateView))
  202.         #undef _TranslateView
  203.         #undef __TranslateView
  204.         #define SOMGD_TranslateView 1
  205.     #else
  206.         #define _TranslateView ODTranslation_TranslateView
  207.     #endif /* _TranslateView */
  208. #endif /* SOMGD_TranslateView */
  209.  
  210. /*
  211.  * New Method: Translate
  212.  */
  213. typedef ODTranslateResult   (SOMLINK *somTD_ODTranslation_Translate)(ODTranslation *somSelf, Environment *ev,
  214.         ODValueType fromType,
  215.         ODByteArray* fromData,
  216.         ODValueType toType,
  217.         ODByteArray* toData);
  218. #define somMD_ODTranslation_Translate "::ODTranslation::Translate"
  219. #define ODTranslation_Translate(somSelf,ev,fromType,fromData,toType,toData) \
  220.     (SOM_Resolve(somSelf, ODTranslation, Translate) \
  221.     (somSelf,ev,fromType,fromData,toType,toData))
  222. #ifndef SOMGD_Translate
  223.     #if (defined(_Translate) || defined(__Translate))
  224.         #undef _Translate
  225.         #undef __Translate
  226.         #define SOMGD_Translate 1
  227.     #else
  228.         #define _Translate ODTranslation_Translate
  229.     #endif /* _Translate */
  230. #endif /* SOMGD_Translate */
  231.  
  232. /*
  233.  * New Method: GetISOTypeFromPlatformType
  234.  */
  235. typedef ODValueType   (SOMLINK *somTD_ODTranslation_GetISOTypeFromPlatformType)(ODTranslation *somSelf, Environment *ev,
  236.         ODPlatformType platformType,
  237.         ODPlatformTypeSpace typeSpace);
  238. #define somMD_ODTranslation_GetISOTypeFromPlatformType "::ODTranslation::GetISOTypeFromPlatformType"
  239. #define ODTranslation_GetISOTypeFromPlatformType(somSelf,ev,platformType,typeSpace) \
  240.     (SOM_Resolve(somSelf, ODTranslation, GetISOTypeFromPlatformType) \
  241.     (somSelf,ev,platformType,typeSpace))
  242. #ifndef SOMGD_GetISOTypeFromPlatformType
  243.     #if (defined(_GetISOTypeFromPlatformType) || defined(__GetISOTypeFromPlatformType))
  244.         #undef _GetISOTypeFromPlatformType
  245.         #undef __GetISOTypeFromPlatformType
  246.         #define SOMGD_GetISOTypeFromPlatformType 1
  247.     #else
  248.         #define _GetISOTypeFromPlatformType ODTranslation_GetISOTypeFromPlatformType
  249.     #endif /* _GetISOTypeFromPlatformType */
  250. #endif /* SOMGD_GetISOTypeFromPlatformType */
  251.  
  252. /*
  253.  * New Method: GetPlatformTypeFromISOType
  254.  */
  255. typedef ODPlatformType   (SOMLINK *somTD_ODTranslation_GetPlatformTypeFromISOType)(ODTranslation *somSelf, Environment *ev,
  256.         ODValueType type);
  257. #define somMD_ODTranslation_GetPlatformTypeFromISOType "::ODTranslation::GetPlatformTypeFromISOType"
  258. #define ODTranslation_GetPlatformTypeFromISOType(somSelf,ev,type) \
  259.     (SOM_Resolve(somSelf, ODTranslation, GetPlatformTypeFromISOType) \
  260.     (somSelf,ev,type))
  261. #ifndef SOMGD_GetPlatformTypeFromISOType
  262.     #if (defined(_GetPlatformTypeFromISOType) || defined(__GetPlatformTypeFromISOType))
  263.         #undef _GetPlatformTypeFromISOType
  264.         #undef __GetPlatformTypeFromISOType
  265.         #define SOMGD_GetPlatformTypeFromISOType 1
  266.     #else
  267.         #define _GetPlatformTypeFromISOType ODTranslation_GetPlatformTypeFromISOType
  268.     #endif /* _GetPlatformTypeFromISOType */
  269. #endif /* SOMGD_GetPlatformTypeFromISOType */
  270. #ifndef SOM_DONT_USE_INHERITED_MACROS
  271. #define ODTranslation_InitObject ODObject_InitObject
  272. #define ODTranslation_HasExtension ODObject_HasExtension
  273. #define ODTranslation_AcquireExtension ODObject_AcquireExtension
  274. #define ODTranslation_ReleaseExtension ODObject_ReleaseExtension
  275. #define ODTranslation_IsEqualTo ODObject_IsEqualTo
  276. #define ODTranslation_SubClassResponsibility ODObject_SubClassResponsibility
  277. #define ODTranslation_somInit SOMObject_somInit
  278. #define ODTranslation_somInit SOMObject_somInit
  279. #define ODTranslation_somDuplicateReference SOMObject_somDuplicateReference
  280. #define ODTranslation_somCompareReference SOMObject_somCompareReference
  281. #define ODTranslation_somRelease SOMObject_somRelease
  282. #define ODTranslation_somFree SOMObject_somFree
  283. #define ODTranslation_somCanDelete SOMObject_somCanDelete
  284. #define ODTranslation_somGetClass SOMObject_somGetClass
  285. #define ODTranslation_somGetClassName SOMObject_somGetClassName
  286. #define ODTranslation_somGetSize SOMObject_somGetSize
  287. #define ODTranslation_somIsA SOMObject_somIsA
  288. #define ODTranslation_somRespondsTo SOMObject_somRespondsTo
  289. #define ODTranslation_somIsInstanceOf SOMObject_somIsInstanceOf
  290. #define ODTranslation_somDispatch SOMObject_somDispatch
  291. #define ODTranslation_somClassDispatch SOMObject_somClassDispatch
  292. #define ODTranslation_somCastObj SOMObject_somCastObj
  293. #define ODTranslation_somResetObj SOMObject_somResetObj
  294. #define ODTranslation_somPrintSelf SOMObject_somPrintSelf
  295. #define ODTranslation_somDumpSelf SOMObject_somDumpSelf
  296. #define ODTranslation_somDumpSelfInt SOMObject_somDumpSelfInt
  297. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  298.  
  299. #endif       /* SOM_ODTranslation_h */
  300.